package com.shycloud.mido.opter.api.feign;


import com.shycloud.mido.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * 登录验证
 *
 * @author nianhua.jiang
 * @date 2020/6/12 11:20
 */
@FeignClient(value = ServiceNameConstants.OPTER_SERVICE)
public interface RemoteOpterLoginService {

	/**
	 * 登录验证
	 *
	 * @param memberId
	 * @return java.lang.Integer
	 * @author nianhua.jiang
	 * @date 2020/6/12 11:20
	 */
	@RequestMapping(method = RequestMethod.POST, value = "/loginValidate/valid")
	List<Integer> validation(@RequestParam("memberId") String memberId, @RequestParam("phone") String phone);

}
